package org.eg.mapper;
import org.apache.ibatis.annotations.Param;
import org.eg.entity.User;

import java.util.List;
import java.util.Set;

public interface UserMapper {


   List<User> selectByNameAndAge(String name, int age);

   List<User> selectByAgeAndName(@Param("who") String name,@Param("age") int age);

   List<User> selectByUserAndName(@Param("user") User user,@Param("age") int age);

   List<User> selectByNames(List<String> names);

   List<User> selectByAges(Integer[]ages);

   List<User> selectByNamesSet(Set<String>names);
}
